<?php
include_once 'db.php';

//GLOBALS
define('HOST_URL',"http://chaos.legendsofheroes.com/");
define('IMAGE_HOST_URL',"http://chaos.legendsofheroes.com/");
define('FACEBOOK_URL',"http://apps.facebook.com/worldofchaos/");

define('MAP_VIEW_SIZE', 2);
define('MAP_X_LOW', 1);
define('MAP_Y_LOW', 1);
define('MAP_X_HIGH', 16);
define('MAP_Y_HIGH', 16);

//DATABASE CONNECTION OPEN
$dbLink = db_connect('loh_chaos');


function getLocationType($type) {
    
    switch ($type) {
        case 1: $locationType = "Grassland";
            break;
        case 2: $locationType = "Forest";
            break;
        case 3: $locationType = "Arena";
            break;
        case 4: $locationType = "Shop";
            break;
        case 5: $locationType = "Market";
            break;
        case 6: $locationType = "Bank";
            break;
        case 7: $locationType = "Tavern";
            break;
        case 8: $locationType = "Temple";
            break;
        case 9: $locationType = "Workshop";
            break;
        case 10: $locationType = "Village";
            break;
        case 11: $locationType = "City";
            break;
        default: $locationType = "Unknown";
    }
}

  
?>
